<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	
		require("koneksi.php");
		$kode=$_POST['kode'];
		$tgl=$_POST['tgl'];
		$isi=$_POST['isi'];
		$author=$_POST['author'];
		$query=mysql_query("insert into informasi values('$kode','$tgl','$isi','$author')");
	
			if($query)
			{
				echo "Data berhasil ditambah<br>";
				echo "<a href='menu_informasi.php'>Back To Menu Informasi</a><br>";
				echo "<a href='menu_admin.php'>Back To Menu Admin<br></a>";
			}
			else
			{
				echo "Data gagal ditambah<br>";
				echo "<a href='menu_informasi.php'>Back To Menu Informasi</a><br>";
				echo "<a href='menu_admin.php'>Back To Menu Admin</a>";
			}
	
	}
	else
	header("Location:index.php");
?>	